package com.tomorrowbbs.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
public class ForumCommentDTO {
    private Long commentId;
    private Long pCommentId;
    private String articleId;
    private String content;
    private String imgPath;
    private String userId;
    private String nickName;
    private String userIpAddress;
    private String replyUserId;
    private String replyNickName;
    private Integer topType;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date postTime;
    private Long goodCount;
    private Integer status;
    private Integer likeType;
    private List<ForumCommentDTO> children;
}
